# 元组元素的操作
# 访问元组的数据

tuple1 = ('apple','orange','banana','1','17.16',[7,9,10])
# print(tuple1[1])
# print(tuple1[-1][1])
#
# # 切片
# print(tuple1[2:])
# print(tuple1[-2::-1])
#
# # 元组的数据是不可操作的
# tuple1[-1][1] = 'hello'
# print(tuple1)

# 元组遍历
# for item in tuple1:
#     for item_name in item:
#         print(item_name)

tuple2 = tuple('admin')
print(type(tuple2), tuple2)
